﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CubicFWNet.Data.Models
{
    public partial class PurchaseCompose
    {
        public System.Guid Id { get; set; }
        public string Number { get; set; }
        /// <summary>
        /// 1:填写采购单（等待分类） 2：等待审核 3：（同意）采购中 4：不同意 5：采购完成 6：已合并等待采购 10:质检完成
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 1.订单产品外购 2.自定义采购 3:采购补单
        /// </summary>
        public int Type { get; set; }
        public Nullable<System.Guid> SupplierId { get; set; }
        public Nullable<System.Guid> CreatorId { get; set; }
        public string CreatorName { get; set; }
        public Nullable<System.DateTime> CreateTime { get; set; }
        public System.DateTime ApplyTime { get; set; }
        public Nullable<System.Guid> ApplyId { get; set; }
        /// <summary>
        /// 1：合并采购 2:单独采购
        /// </summary>
        public int PurchaseType { get; set; }
        public string Data { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        public decimal StandardAmount { set; get; }
        [DisplayName("采购数量")]
        public decimal Amount { get; set; }

        [DisplayName("成本价格")]
        public decimal CostPrice { get; set; }
        public decimal ActualPrice { get; set; }
        public string Memo { get; set; }
        /// <summary>
        /// 到货日期
        /// </summary>
        public Nullable<System.DateTime> ArrivalTime { get; set; }
        /// <summary>
        /// 到货数量
        /// </summary>
        public decimal ArrivalAmount { get; set; }
        /// <summary>
        /// 采购产品名称
        /// </summary>
        public string ProductName { set; get; }
        /// <summary>
        ///  采购产品名称Id
        /// </summary>
        public System.Guid ProductId { get; set; }
        /// <summary>
        ///最上级父id
        /// </summary>
        public Nullable<System.Guid> ParentId { get; set; }
        public Nullable<System.Guid> OtherId { get; set; }
        /// <summary>
        /// 发票号
        /// </summary>
        public string FinanceNumber { get; set; }
    }
}
